/*
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *如果数据库字段发生变化，请在代码生器重新生成此Model
 */
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SqlSugar;
using VOL.Entity.SystemModels;

namespace VOL.Entity.DomainModels
{
    [Entity(TableCnName = "应付",TableName = "DealWith")]
    public partial class DealWith:BaseEntity
    {
        /// <summary>
       ///流水号
       /// </summary>
       [SugarColumn(IsPrimaryKey = true)]
       [Key]
       [Display(Name ="流水号")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public string DealWithId { get; set; }

       /// <summary>
       ///产品名称
       /// </summary>
       [Display(Name ="产品名称")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string DealWithName { get; set; }

       /// <summary>
       ///付款方式
       /// </summary>
       [Display(Name ="付款方式")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string Ordertype { get; set; }

       /// <summary>
       ///付款人
       /// </summary>
       [Display(Name ="付款人")]
       [MaxLength(30)]
       [Column(TypeName="nvarchar(30)")]
       [Editable(true)]
       public string Payer { get; set; }

       /// <summary>
       ///收款人
       /// </summary>
       [Display(Name ="收款人")]
       [MaxLength(30)]
       [Column(TypeName="nvarchar(30)")]
       [Editable(true)]
       public string Payee { get; set; }

       /// <summary>
       ///应付金额
       /// </summary>
       [Display(Name ="应付金额")]
       [DisplayFormat(DataFormatString="10,2")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? DealWithPrice { get; set; }

       /// <summary>
       ///实付金额
       /// </summary>
       [Display(Name ="实付金额")]
       [DisplayFormat(DataFormatString="10,2")]
       [Column(TypeName="decimal")]
       public decimal? ActualPrice { get; set; }

       /// <summary>
       ///剩余金额
       /// </summary>
       [Display(Name ="剩余金额")]
       [DisplayFormat(DataFormatString="10,2")]
       [Column(TypeName="decimal")]
       public decimal? ResiduePrice { get; set; }

       /// <summary>
       ///最后付款日
       /// </summary>
       [Display(Name ="最后付款日")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       public DateTime? EndOrderTime { get; set; }

       /// <summary>
       ///备注
       /// </summary>
       [Display(Name ="备注")]
       [MaxLength(200)]
       [Column(TypeName="nvarchar(200)")]
       [Editable(true)]
       public string Remark { get; set; }

       /// <summary>
       ///状态
       /// </summary>
       [Display(Name ="状态")]
       [Column(TypeName="int")]
       [Required(AllowEmptyStrings=false)]
       public int PayReceState { get; set; }

       /// <summary>
       ///创建时间
       /// </summary>
       [Display(Name ="创建时间")]
       [Column(TypeName="datetime")]
       public DateTime? CreateTime { get; set; }

       /// <summary>
       ///是否删除
       /// </summary>
       [Display(Name ="是否删除")]
       [Column(TypeName="sbyte")]
       public sbyte? IsDeleted { get; set; }

       
    }
}